const proxy = require('http-proxy-middleware')

module.exports = function (app) {
    app.use(
        proxy('/devapi', {
            target: 'http://localhost:8001',
            changeOrigin: true,
            pathRewrite: { '^/devapi': '' }
        })
    )
}